home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
xset402.zip
/
README.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-03-29
|
1KB
|
54 lines
@echo off
if not exist XSET.EXE goto NOTFOUND
if not exist XSET.DOC goto NOTFOUND
goto begin
:NOTFOUND
echo:
echo Error: you must be in the directory containing XSET.EXE and XSET.DOC
echo:
pause
goto end
:begin
echo:
echo Do you want to see the documentation on the screen
echo or to print it onto the printer ?
XSET/COLOR HIGHLIGHT/PROMPT " Hit S for screen, P for printer"/UPPER _k KEY "SP"
echo:
goto %_k%
:S screen
more < xset.doc
goto end
:P printer
echo Please choose printer: P prn
echo 1 lpt1
echo 2 lpt2
echo 3 lpt3
echo 4 lpt4
echo O other
XSET/UPPER _k KEY "P1234O"
if "%_k%" == "O" goto input
set _k=lpt%_k%
if "%_k%" == "lptP" set _k=prn
:print
copy xset.doc %_k% > nul
goto end
:input
set _k=lpt1
XSET/COLOR HIGHLIGHT/DEFAULT/PROMPT " Choose printer: " _k
echo:
if not "%_k%" == "" goto print
:end
set _k=
echo Run the batch file DEMO.BAT to have an example of the power of XSET.